﻿@{
    ViewBag.Title = "UploadTest";
}
<script src="~/scripts/jquery-1.11.0.min.js"></script>
<script src="~/Scripts/moxie.js" type="text/javascript"></script>
<script src="~/Scripts/plupload.dev.js" type="text/javascript"></script>
<script src="~/Scripts/qiniu.js"></script>
<script>
    $(function () {
        var uploader = Qiniu.uploader({
            runtimes: 'html5,flash,html4',
            browse_button: 'pickfiles',
            //container: 'container',
            //drop_element: 'container',
            max_file_size: '1000mb',
            flash_swf_url: "~/Scripts/Moxie.swf",
            dragdrop: true,
            chunk_size: '4mb',
            multi_selection: true,// !(mOxie.Env.OS.toLowerCase() === "ios"),
            uptoken_url: './GetQiniuUpToken',
            domain: '7xj84r.com2.z0.glb.qiniucdn.com/',
            get_new_uptoken: false,
            auto_start: true,
            log_level: 5,
            init: {
                'FilesAdded': function (up, files) {

                },
                'BeforeUpload': function (up, file) {

                },
                'UploadProgress': function (up, file) {

                },
                'UploadComplete': function () {

                },
                'FileUploaded': function (up, file, info) {

                },
                'Error': function (up, err, errTip) {

                }
            }
        });

    });
</script>
<h2>UploadTest</h2>
<div>
    <a id="pickfiles" href="#">
        <i></i>
        <span>选择文件</span>
    </a>
</div>

